package reflect;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo {
    public static void main(String[] args) {

        try(FileOutputStream fos= new FileOutputStream("fox.txt");) {
            fos.write(1);
            System.out.println("完事");
            System.out.println("fghjk");
            System.out.println("sasdedgfgw");
            System.out.println("asddfadf");
            System.out.println("asfafadfafagagawehg");
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}